#pragma once
#include "TCharSupport.h"
#include "EpilExpressionCodeBase.h"
#include "EpilFieldRecordInitializerCodeBase.h"


class EpilFieldIndexInitializerCode : public EpilFieldRecordInitializerCodeBase
{
	EPIL_CODE_DECL( FieldIndexInitializer );

public:
	EpilFieldIndexInitializerCode( const EpilLexLocation & location );
	virtual ~EpilFieldIndexInitializerCode();

	EpilExpressionCodeBase *			GetIndexExpression() const								{ return m_indexExpression; }
	void								SetIndexExpression( EpilExpressionCodeBase * expr )		{ m_indexExpression = expr; }

	virtual tstring						ToEpilCode( int indent = 0 ) const;
	
private:
	EpilExpressionCodeBase *			m_indexExpression;
};